Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common source amp with diode connected load #354

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

hirunisilva275
Copy link

Common source amp with diode connected load

hirunisilva275 and others added 5 commits November 24, 2024 10:36
Common source amplifier with diode connected load
NMOS are used for both input and load devices.
common source amplifier with diode connected load
@alibillalhammoud
Copy link
Collaborator

Thank you for the PR @hirunisilva275 . Please include DRC and LVS reports to confirm the design is clean.

mtop = multipliers if subckt_only else 1
model = pdk.models[n_or_p_fet]

source_netlist = """.subckt {circuit_name} {nodes} """ + f'l={length} w={width} m={mtop} ' + """
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to write the spice for the netlist, you can construct it using the sub-devices. Refer to

def opamp_output_stage_netlist(pdk: MappedPDK, output_amp_fet_ref: ComponentReference, biasParams: list) -> Netlist:

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay so we need only the pcell for that? I am a bit confused. can you explain further.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The common source amp uses subdevices such as nmos. Each of those devices have their own netlists. You can directly connect those netlists using python code to make the netlist for the CS amp. You don't need to write any spice, just instantiate the subdevices in glayout and connect them.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is another, probably better example.


instance_format = "X{name} {nodes} {circuit_name} l={length} w={width} m={mult}"
return Netlist(
circuit_name='CMIRROR',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name of the component is not cmirror right?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No I am working on the common source amplifier with diode connected load. I am still working on the DRC and LVS. I will be able to update the PR soon with the new results.

@hirunisilva275
Copy link
Author

hirunisilva275 commented Dec 12, 2024 via email

@harshkhandeparkar
Copy link
Collaborator

So I can do like this and then do the DRC?

Sorry for the late reply, but can you elaborate your question?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants